using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

/// 总线
namespace DealerPlatform.Common.EventBusHelper
{
    public class LocalEventBus<T> where T : class
    {
        public delegate Task LocalEventHandler(T t);
        public event LocalEventHandler localEventHander;
        public async Task Publish(T t){
            localEventHander(t);
        }
    }
}